//
//  CYCallRecordCVCell.h
//  CreditAddressBook
//
//  Created by Lee on 15/5/22.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CYCallRecord;

typedef NS_ENUM(NSInteger, CYCallRecordCellStyle) {
    CYCallRecordCellStyleDefault = 0,
    CYCallRecordCellStyleAdd
};

@interface CYCallRecordCVCell : UICollectionViewCell

/**
 *  cell样式
 *  CYCallRecordCellStyleAdd：添加按钮样式
 */
@property (nonatomic, assign) CYCallRecordCellStyle style;
@property (nonatomic, strong) CYCallRecord *callRecord;

@property (nonatomic , assign) CGFloat cellH;//cell的高度

@property (nonatomic , assign) CGFloat cellW;//cell的高度

/**
 *  注册cell
 *
 *  @param collectionview
 *  @param identifier
 */
+ (void)collectionView:(UICollectionView *)collectionview registerCellWithReuseIdentifier:(NSString *)identifier;

/**
 *  创建cell
 *
 *  @param collectionview
 *  @param identifier
 *  @param indexPath
 *
 *  @return
 */
+ (instancetype)collectionView:(UICollectionView *)collectionview dequeueReusableCellWithReuseIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath;

/**
 *  cell头部点击
 *
 *  @param target
 *  @param action 
 */
- (void)detailBtnAddTarget:(id)target action:(SEL)action;
@end
